package com.gitee.shoes.crawler.core.nice;

import com.gitee.shoes.crawler.core.IResp;
import lombok.Data;

/**
 * @author LYH
 */
@Data
class NiceResp<T> implements IResp {

    private Integer code;
    private T data;

    @Override
    public boolean isSuccess() {
        return this.code == 0;
    }
}
